/**
 * 作者: hxl
 * 日期: 2024-12-10 14:29:00
 * 备注: 花店秘书配置表
 */
package com.motu.monstercity.server.game.commondata.florist;

import io.vertx.core.json.JsonObject;

public class FloristSecretaryModel {
    protected int id; // id
    protected int secretaryId; // 秘书ID
    protected int sort; // 顺序 (显示顺序和替换顺序)
    protected String need; // 需要道具

    public FloristSecretaryModel() {
    }

    public FloristSecretaryModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        secretaryId = obj.containsKey("secretary_id") ? obj.getInteger("secretary_id") : 0;
        sort = obj.containsKey("sort") ? obj.getInteger("sort") : 0;
        need = obj.containsKey("need") ? obj.getString("need") : "";
    }

    public int getId() {
        return id;
    }

    public int getSecretaryId() {
        return secretaryId;
    }

    public int getSort() {
        return sort;
    }

    public String getNeed() {
        return need;
    }

}
